package org.smile.auth.request;

import javax.servlet.http.HttpServletRequest;

public class ServletRequests {
    private static ThreadLocal<HttpServletRequest> requests=new ThreadLocal<>();

    public static void set(HttpServletRequest request){
        requests.set(request);
    }

    public static void clear(){
        requests.remove();
    }

    public static HttpServletRequest get(){
        return requests.get();
    }
}
